import Vue from 'vue';
import App from './App.vue';
import VueRouter from 'vue-router';

import iView from 'iview';
import 'iview/dist/styles/iview.css';
import { routes } from './routes';
import axios from 'axios';
import VueAxios from 'vue-axios';
// import '../src/base/jquery-1.9.1.min'
// import '../src/base/xheditor-1.2.2.min'
// import '../src/base/xheditor_lang/zh-cn'

Vue.use(VueAxios, axios);
Vue.use(iView);

Vue.use(VueRouter);

const router = new VueRouter({
    routes: routes, // 可以直接写成routes
    mode: 'hash' // mode设置成history，那么地址就可以请求http://localhost:8080/user
});
new Vue({
    el: '#app',
    router,
    render: h => h(App) // render
});